package com.qixin.modules.eaLoan.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import com.qixin.modules.eaLoan.entity.EaLoanbill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * @Description: 借款单
 * @Author: qixin-boot
 * @Date:   2021-07-20
 * @Version: V1.0
 */
public interface EaLoanbillMapper extends BaseMapper<EaLoanbill> {

    List<EaLoanbill> selectLoanBills(Map<String, Object> map);

    EaLoanbill selectByLoanId(String id);

    @Update("update ea_loanbill set ea_repaymentbill_id = null where id = #{id} ")
    void updateByBillId(String id);
}
